package jiachunlei.command;

/**
 * 请求类
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/10 22:05
 */
public class Stock
{
    private String name = "ABC";
    private int quantity = 10;

    public void buy()
    {
        System.out.println("Stock{" +
                "name='" + name + '\'' +
                ", quantity=" + quantity +
                '}'+"-bought");
    }

    public void sell()
    {
        System.out.println("Stock{" +
                "name='" + name + '\'' +
                ", quantity=" + quantity +
                '}'+"-sold");
    }
}
